package com.hsxc.cdz.monitor.bean.pile.v1_33;

import com.hsxc.cdz.base.util.BytesUtil;

/** 
* @author 作者 : 陈钊
* @version 创建时间：2016年9月9日 下午3:16:14 
* 类说明：  充电桩的预约主动回复
*/
public class ReservPileMsg extends PileMessage{

	private int port;
	private String cardNo;
	private String resStartTime;
	
	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getResStartTime() {
		return resStartTime;
	}

	public void setResStartTime(String resStartTime) {
		this.resStartTime = resStartTime;
	}

	@Override
	public void getContentFromByte(byte[] data) {
		byte[] temp;

        temp = BytesUtil.getByte(0,1,data);
        this.setPort(BytesUtil.bytesToIntSeq(temp));
        
        temp = BytesUtil.getByte(1,10,data);
        this.setCardNo(BytesUtil.bcdBytesToStr(temp));
        
        temp = BytesUtil.getByte(11, 7, data);
        this.setResStartTime(BytesUtil.bcdBytesToStr(temp));
	}

}
